Yes, there is. It just requires more planning than most people are willing to do. Sit down with a good accountant or a good tax attorney and make a plan. Once you have that plan, it's not particularly difficult to follow it.
But I'm going to return your attention to something that I think you're overlooking as an important piece of information. Your 401(k) is a tax deferral. Even though you're putting in pretax dollars in 2020, you're paying taxes on the money when you take it out in the future, say 2050. You're not avoiding the tax. You're not reducing your tax burden. You're changing the timing.
Ideally, you take it out when you're in a lower tax bracket and so you get a savings on the tax arbitrage. But if you've been putting away a good chunk of money, have large withdrawals in the future and/or other income sources, you could end up in the same tax bracket as you would have been anyway. So, you would still need smart tax strategies in the future to actually reduce the tax burden.
This is an issue that comes up with real estate depreciation as well. People take the depreciation for the tax benefit as they own the property. Forgetting that when the property is later sold for profit, all of the depreciation is added back in to calculate the taxable profit. That has to be planned for.
401(k)s, depreciation deductions are designed to encourage you to do something in the immediacy but Uncle Sam is not giving away that money. They're letting you hold on to it for a little bit longer.
If you want to hold on to the money and never give it back, you have to take the next step in tax planning, which is how to manipulate the timing for rate gains or push the deferral out so far that you effectively never pay it back. But just putting money into a 401(k) doesn't change your actual tax burden to the government, just the timing of when you eventually pay it. That's obviously simplified.