1. A non-volatile memory device including a flash memory and means for executing external commands, the external commands including a first subset of commands for accessing the flash memory directly, characterized in that the memory device further includes a programmable logic unit and means for storing program code for the logic unit, the external commands including a second subset of at least one command for causing the logic unit to process information stored in at least one portion of the flash memory under The control of the program code.