SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7696799b597faf34e24d614903cae9e324982a48aa02f4a05ae3e1f12002a712' 
  AND token = 'n/RgN3bWgJZYnBEGn1KZilAN8mZoa/tCeyUJnSHSxwM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00048

JSON explain

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