SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'f0a1e3818069305ee2ab20f2d4b72e6f5bb515ee6a07f3e74e8a7f4f9307babc' 
  AND token = '7cHedWeIamhhmlxc8e3BGj3HyZGEzuMEVVMImf2b/Q4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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