Minor scale-copy merge and memory optimization.