Freeze changes before storing into index.