The surprising way to save memory with BytesIO