Improves RangeContext ancestor reuse