Added check if local content data changed before write to file.