optimize config registry regular rules