Text this: Suppressing spectator-induced dephasing through optimized dynamical decoupling implementation