minor optimizations to TinkerMessenger.