Improved client memory management of text content