We should probably add `compression=ZIP_DEFLATED` here so that the file is actually compressed (not directly related to this PR but it's a small change we've missed before.