Refactor channel/topic assigns keys for faster lookup