Try to cache dependencies.