nn: mv the cache array into class's public.
threads did not improve nn.