Commit only every 256 messages