Put the topics in to text[] instead of many-to-many tables.
Commit the precomputed CSVs with topics in text[].