Perhaps when doing $ cpio -i file.txt < x.cpio #or $ cat x.cpio | cpio -di z/file.txt #whatever
once the file is found have cpio exit early, instead of scanning the remainder of the file. Or make this an option, as perhaps archives might contain multiple identical entries.