Memory reduction for BVH