It's not "hacky".
Switching power supplies have a hard time responding to instant high-demand current draw. This helps a lot, and is pretty standard practice in pinball machines.
Check out Stern Part #520-5343-01, or this: https://squareup.com/market/fast-pinball-llc/item/fast-power-filter-board, or this: https://www.multimorphic.com/store/circuit-boards/power-entry/