CLN: make tm.N, tm.K private
AFAICT this gets rid of the last two places where we set `tm.N` externally.  With those gone, this privatizes these variables in the hopes of not falling back into that pattern.
sure