Cache dependencies for a faster build.