cache the authentication mechanism in use by the server; this will cut the number of requests in half and not do an unauthorized request every time