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

Query time 0.00023

JSON explain

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