Improve performance of NotifyBrokerRuntime code