You can dice and cook the carrots and potatoes ahead of time and keep them covered in the fridge. You can also cook and dice the hard boiled eggs ahead of time, as well as the ham and pickles, and store them in the fridge until it's time to assemble the salad.