1. A computer implemented method for securely saving a program's context, the method comprising: interrupting a secured program running on a special purpose processor core included in a heterogeneous processor that includes a plurality of heterogeneous processor cores including the special purpose processor core that is running in an isolation mode, wherein the isolated special purpose processor core includes a local memory that is inaccessible from other processor cores included in the heterogeneous processor while the special purpose processor core is running in the isolation mode, wherein each of the heterogeneous processor's cores can access a shared memory; in response to the interrupting, securely saving the secured program's context to the shared memory, wherein the context comprises code lines and data values, the saving including: generating a random persistent security data; reading the code lines from the isolated special purpose processor core's local memory; reading the data values from the isolated special purpose processor core's local memory; encrypting the code lines and the data values using the generated persistent security data; and storing the encrypted code lines and data values in the shared memory.