Added quick fix to s3cache to try make cache safer