Little known IRS loophole allows you to protect your savings from bear markets