SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '7b1097a67dc3e2b034215b71bdc8acbad51cc43453d9aedf99a5360d1da871c9' 
  AND token = 'wnhg5ZjHfHBjDZ9c+v9grl1X3YbxxfIgnGWY+syfkw8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00017

JSON explain

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