Optimise the Commit objects creation