Added caching support for commits