That's a very good point. The attachments are not included in the response, though, only some basic metadata such as mimetypes and IDs that you can dispatch another API request to fetch.
However, the Gmail Body, if I researched correctly at the time, is allowed to have up to 25mb, so 300 of them will explode your memory no matter what. Streaming to a file seems the only sane way of handling it if this was a requirement.
I was given 40 hours to complete this project, so I had to make compromises with the best of my capabilities. At the time, I thought of asking from Gmail only for e-mails …