1. A method of obfuscating a code, the method comprising: performing, with an address translation hardware device, a first level obfuscating technique on a code to generate a first obfuscated code while conserving at least part of a locality in a cache line; performing a second level obfuscating technique on the first obfuscated code to produce a second obfuscated code, wherein the first level obfuscating technique preserves locality while the second level obfuscating technique emphasizes efficiency; and hardcoding one secret per wafer into the address translation hardware device.