1. A method, comprising: traversing, by computational memory, an operating system page table in the computational memory for any page that is stored in the computational memory and 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; encrypting the page marked as executable using the key; in response to determining that the page marked as executable is encrypted, traversing the operating system page table for an additional page marked as executable; in response to finding the additional page marked as executable, determining whether the additional page marked as executable has been encrypted; in response to determining that the additional page marked as executable is not encrypted, generating a different key for the additional page marked as executable; and encrypting the additional page marked as executable using the different key.