Federated Optimization of Smooth Loss Functions