for efficiency, include pre-encoded nn constants