Both the Nasdaq and S&P indices have soared this year