Portable smartcard devices, methods of operating smartcard devices, systems including a smartcard device and a terminal, and computer readable storage media including instructions for smartcard devices are provided. According to some embodiments, the smartcard includes a controller for executing commands received from a terminal, where execution of at least one command affects a
power consumption of the smartcard device during subsequent execution of at least one other command. Optionally, the command which modifies smartcard
power consumption is issued by the terminal in accordance with a
power consumption decision. According to some embodiments, as an allowed power consumption of the smartcard device increases, the performance of the smartcard increases, and vice versa. According to some embodiments, the execution of the at least one command sets an operating parameter of the smartcard device, such as a
clock frequency or a time of a non-
volatile memory operation, thereby affecting the power consumption of the smartcard device during the subsequent executing. Alternatively or additionally, the execution of the at least one command enables or disables a functional unit of the smartcard device. Exemplary functional units include but are not limited to floating-point units and cryptographic units. Alternatively or additionally, the execution of the at least one command enables or disables memory such as non-
volatile memory of the smartcard device. According to some embodiments, the execution of the at least one command sets an operating parameter of internal circuitry of the smartcard.