Separates caching for tree and attribute filter to reduce number of tags