Pre-allocate memory for large downloads.