SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'bafe8a24a6d80037b5fdc841fb1d977a5d496991eed8a8ca7f447c56e66704a2' 
  AND token = 'Afd7c0+9cmHeTORHzHeU37ZZSXwPtsjbjZ0mj5Gy8GM=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00025

JSON explain

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