In memory cache + batch writes