Improved performance in similar search