stats: it's fine to use asserts in internal functions