Code to better cache credentials for when requests are redirected to different storage nodes.