Make pmatch deterministic function, move it to sxdbi.c, do not use sh_hashfs_t inside it