add utility for profiling memory usage of encryption