@Ankit_smart I would try and split the task into several consecutive loops. If you have to transfer information between them maybe store it a a table and reuse it later.
If you want to do the downloads in parallel to speed them up you could use a parallel execution - that should work if the server in question would allow that.