Optimized message handler.
Optimized registry helper.