Rewrite cpio+compressor logic using with statements for everything