Optimized by limiting register use