Optimizations for JP-search