Added scoped profiling to SelfEncryptor functions.