SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'd019e78fe1a9a208d6a603a0a9bdaddd7cd8f7aeb4043b0781e9b93f9e00a5a4' 
  AND token = 'RDyRYatBFp1p/Bt0f5db4aRxe3x138LNJMpgiUnqpLo=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00020

JSON explain

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