Strategy gains $8B in market cap after IRS waiver