1. A machine-implemented method of storing data in a memory interfacing with a secure microcontroller, the method comprising: generating a logic address, input data and a write/read control in the microcontroller, the write/read control identifying a memory read or write operation; translating the logic address to at least one physical address in the memory that is partitioned into a plurality of regions; generating a mode control signal based on the logic address and the write/read control, the mode control signal identifying a data processing mode from a plurality of data processing modes; associating the data processing mode with at least one data processing method selected from a plurality of data processing methods, each data processing method being associated with at least one region of the memory; storing data within the at least one region of the memory according to the selected at least one data processing method; and wherein one of the plurality of data processing modes involves two data processing methods, such that two processed data are generated, and a first logic address is translated into a first physical address and a second logic address is translated into a second physical address, the first and second physical addresses are located within different regions in the memory.