SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '21a08794b307187a53625ac560b3a3fe84094368ce5864e0a88390b152f5fabf' 
  AND token = 'd5eyER9r/vohkmf6KMUecOBjGADIO9pibFstfJJq2iA=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00037

JSON explain

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