Cache dependencies in S3