Text this: Optimized fourth-order Runge-Kutta method for solving oscillatory problems