Perfomance tuning (reduced object creation etc.) (see bug #14103) Submitted by: Henrik Olsson <henrik.olsson@intentia.se>