SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '3191721171a85c3115f9304a8061063c665493baf7c122ce8f0428ac6a9ed60c' 
  AND token = 'YZ8s8+Fm0tlgFJWGmsRX90EGcGS0FH4YBVxrkooEswY=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00037

JSON explain

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