Improved performance of dashboard stats widget