Optimizing shavings for reduced energy