save token cache in a secured manner