A non-transitory machine-readable storage medium storing instructions which, when executed, cause a processing device to perform operations comprising:
- receiving a wrapped key that encodes a cryptographic key;
- storing the wrapped key in an encrypted memory region of a trusted execution environment;
- executing, by a processing device using the trusted execution environment, instructions to derive the cryptographic key in view of the wrapped key, wherein the executing the instructions to derive the cryptographic key comprises a task that consumes computing resources for a duration of time;
- using the cryptographic key to access program data;
- executing, by the processing device, the program data, wherein the executed program data evaluates a condition related to the duration of time;
- and
- transmitting a message comprising an indication of the evaluated condition, wherein the message indicates that the cryptographic key has been derived in view of the wrapped key within a predetermined minimum threshold time.