SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'bf51ce4f6f0ca2072d5cffc924d575e18435e4f8654a15ffe286f8cdf8da642a' 
  AND token = 'eJNpVLSOjsfyUpX3tifKhD/chuLyVcRD/XFdL7s9sXk=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00050

JSON explain

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