Restructuring kernels to allow compact hash to be added