cnf performance optimizaton