improvements to oauth-cache