Updated httpclienthelper to be more efficient