added matrix transform caching, and optimized the clear() method.  This has improved rendering performance by about 17%