Revert "Cleanup: removed dead code"

Sorry, I missed this is actually going to be used.

This reverts commit a81d3263f0a63de3f4c86118fbfff1702a821888.
Partially revert "Stats: data load is not async anymore, no need for a callback"

Also missed this was actually going to be used.

This partially reverts commit 93e72d6500726d956fe62b24b521b769b1704642.