[BUGFIX] Make treelist cache work with bigger trees