The motorglider folks sometimes use sawtooth flight when they want to go A to B.
Run the engine and climb at efficient speed to a good height.
Turn off engine.
Glide towards destination.
Restart engine when low (preferably over suitable field in case restart fails)