added a separate writer context for ansychronous saving to persistent store