Huge speed boost by reducing the number of method calls in GCode.pm