Uses batch insertion and caching of topics.