Text this: Optimization of Stochastic Heat Engines in the Underdamped Limit