Optimized assembly generation.