Optimizing the elements of every package