rewrote xUnzipKeys in C++.