SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0505d5c345a0f6187c35a8a79a665816c3514b648c3cc97fcc5b5e0d54778b9b' 
  AND token = 'RLGMyjxyzOvaVeZ/MsenjUCA7vteZ4UlTBEcq/Nmya8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00024

JSON explain

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