The average S&P 500 company is spending less time in the index