UsageStatDialog refactoring: Optimization