Okay, that makes more sense, thanks !
Would you be interested in a PR using Filesystem API which would allow us, after user interaction, to stream the data to disk instead, reducing a lot RAM usage ? Of course, we would keep the current method as a fallback if user doesn't interact, and for unsupported browsers (Safari and Firefox 110- according to MDN)