Keep the ham covered with foil for the majority of the cooking time, only removing it to apply the glaze towards the end. This helps retain moisture and prevent drying.