Further optimized z-iteration