SELECT 
  1 
FROM 
  q_lock_keys 
WHERE 
  key_id = '9e4bbda79be8fecb7bb5cf7369d46fb8177fb37cff2e241f11c138dff431c842' 
  AND token = 'or01jtxYc+XSFlmyY8i66EK6kuk7O/2+5V78gOAPiw4=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00024

JSON explain

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