SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'f2c4ec3ff0eb978144fc19be6796c04e19495710557ca9e9eb823faf172a0f12' 
  AND token = 'rOPfzEbXb1HtlH3ylMDWgy04xmBLGWvkPi2csM+02T4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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