making cache persitance for tree.