SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '4f4ab67e9c1a5dcb729a4237adc3a65145c85b7e2983e6b13987b6d922de1b99' 
  AND token = 'xfOCcaXPuREXdfhB5dYrVgUIUO9vRqI0gSeodaeV9No=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00026

JSON explain

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