Optimizing training costs with Managed Spot Training