Cache dependencies.