Investment in data centers has made memory chips, computer processors and other equipment, as well as electricity, more expensive.