SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '1a793880eb6ab21c8e433ee029eb246d1cc33f436a8922998f56cf29719058bc' 
  AND token = 'qBjp1aNpCsdv77VGS9w7nyHl63Invcl7raeJnxF90t4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}