SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'a3f7a1424c280686eb04e23666240c247aa8f37c4ca6576ebd89da84ad33a402' 
  AND token = 'z5CzReE6IGGJD2/1ht7JLBLGG2Q/XUEZDDmEqm7KhYY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}