Dom transformations no longer "thrash".

Much faster!

Change-Id: I8181e7de92fbbc3d71eff5a70bc9c8de2d52e670