Avoid a needless file existence call
Refactor two lines of code
Don't update the cache unless necessary
Print a debug message every time an S3 backend is created