Add profile flag.
Less locks for topic.
Make topic buffer size configurable.
Tweak topic locks.