improved speed. independent capture and caching of text node computations