NF optimalize