SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '338f841394c795ee35ece1c84f0f5469db001dc900367767c7662494f075045c' 
  AND token = '827hjwCzokLjlBojXwOnTZuyHaV4QvA3Otpiiyw9xEU=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00023

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}