Updating caching lib to allow auth'd caching when flag is set