Topics cache

Picked Josh's commits related to adding caching to topics info. Open for further review.