optimize download process in DownloadTask