1. A method comprising: selecting a memory page of host application code; translating executable code of the selected memory page of host application code; moving the translated executable code of the selected memory page from the host application into a stub code area comprising at least one stub routine for performing any of a security and access rights check; overwriting the selected memory page of host application code; removing host page permission for execution of code in the selected memory page of host application code; and emulating the translated executable code of the selected memory page that was moved into the stub code area when an exception is raised during execution of said host application code as a result of attempted access to the selected memory page of host application code if and only if said security or access rights check is satisfied by said at least one stub routine.