Add persist support

This helps for caching, data added in a persist: when returned will reappear in a msg.

Caution: may not be thread safe