Added a very basic cache mechanism to prevent long download times from S3