speedup library cpio function