SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '1ffd0f1f4a81640f5d15bee2cb9a32b2a12170e60e9167956ff4db1f7083215e' 
  AND token = 'GY0Py4EBiHTeua+J6Ifo4w5wbpWhn4o8O4rC2SLB9OQ=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00032

JSON explain

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