Basically if you are following the same publicly known strategy (buy the index), other investors can arbitrage you by buying or selling ahead of you, like before a stock becomes part of the S&P500. That means you always buy stocks dearer and always sell cheaper.
That's why confidentiality and anonymity is crucial to a functioning market.