Optimized search.