Similarity search is optimized.