Provide secured memory functionality for C++ managed pointers