SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'd997931be051e3395b6224a8023e3e761793e130e5ff1f55bf46305b41a2ce47' 
  AND token = 'lXipkrRKhMyg/Goi3/7xvfZxnHQFyW57aAIushho5GE=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00054

JSON explain

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