Generate more efficient code (use stack not heap)