Add cache for CommitLog objects to avoid refetching same commit.