Domain Wall Switching: Optimizing the Energy Landscape