Move some NCE computations in log-space.