Auto-persisting data objects