Implementing transform cache to prevent thrashing layout as often.