Set events to donotpersist before broadcasting to avoid writing them to the database multiple times.