Reduce memory consumption for JSON downloads