avoids redundant copying in SearchContext.