Memory usage remained under 300 MB, and CPU usage was minimal during downloads (mostly I/O-bound).
Download function: