Optimize download_to_string by using threads