Optimize request() performance and enable gzip/deflate content encoding