advanced TEE techniques