Separate RECENT Flag to a mailbox document.

this way we avoid a bunch of writes.
refactor common pattern to utility function