optimized rtree cache creation.