Consolidate Cache and update HashTree, DynamicIndex