Add ability to cache topics. With this change, database connections can be significantly reduced with no consistency risk in anything but abnormal circumstances. For example, topics externally deleted from the database.