Safe Learning-Based Optimization of Model Predictive Control: Application to Battery Fast-Charging