Improved transformation compacting.