SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '2628992ad8bf9845b92933251f7bfbc4bf558835397fd9f2af12197d1f351d17' 
  AND token = 'ah0ZRj1+Q4kC7VSU9FXRC1GJUWgSyYVeEmQZQ3MAyTg=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "message": "Impossible WHERE noticed after reading const tables"
    }
  }
}