Move stats buffer size to the regular config
Add memory statistics
Clean up stats configuration