Improved creation of the dependency cache