Reduce unnecessary UID check when saving message