performance optimizations. 1 million ops per second for cached nnObj. 825 thousand without cached.