Added support for caching logon credentials.