Ensure multiple-AppDomain safety with minimal speed penalty