SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7c9067ddd832fd92a8a17f654880b46a7ec654ad083518b6df8d6b98a0d2997b' 
  AND token = '0XfCpr+HsttAgwRSL6ZgXOPbV07fjo9Gfccwr5yFhik=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00045

JSON explain

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