SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0014f11969c9077811a9d71691f6f84d36df5894f0663a2feb8038f4b9451667' 
  AND token = 'ozrebA7NL2WPQ9FcHfHZAfVsDGHb6RNDgwQDpVpFnnw=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00038

JSON explain

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