Remove usage of non thread-safe BasicHttpContext