Freeze objects and api to forbid any changes.