1. A method, comprising: traversing, by computational memory, an operating system page table in the computational memory for a page marked as executable; in response to finding a page marked as executable, determining whether the page marked as executable has been encrypted; in response to determining that the page marked as executable is not encrypted, generating a key for the page marked as executable; and encrypting the page marked as executable using the key.