add cache for treeentry to commit