Id and sid handling for matterhorn-search-proxy