Store the profile hash whenever the profile is created or updated.