Fix createArchive performance