Update viewer to use new batches instead of sqlite based caching.