Enhanced used memory calculation for values displayed in G