Changes for saving auth cache locally.