Optimizations to CBForest indexer