Improved how GPU memory usage is tracked