Optimize initialization of search result.