Replace internal NET handles with objects to simplify unneeded
dereferencing