The S&P 500 is on track to post record Q2 profits, but there is a catch.