Small performance improvement for the BVH4.