Designing Future Low-Power And Secure Processors With Non-Volatile Memory