SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '0017aca589cfaf7d77cead5c811a4eb390ca3c28167a5d3ef9ce5e771b35df57' 
  AND token = 'WJBcWGUtCZpvtdfj6VSn/Nv+JjIclV4S9Q9NwUqJ/Bk=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00049

JSON explain

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