SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'e797a4042ef8adabc91747ed9362b03f4021dd89e4a8bc34baceb49e114fd9f1' 
  AND token = 'qsBJ7HaMNXUl3rSjBsXH+lcmkQpxB9hkEPGVVlxsisQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00032

JSON explain

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