Octree optimizations