What Makes Local Updates Effective: The Role of Data Heterogeneity and Smoothness