Performance improvements to tracking total size