Optimizations for the "only the transform changed" case.