core: store stats into data object for modules to reuse.