@tonio said the same to me. Reading properties from the DOM is often more costly than reading from a non-DOM object. That's the reason I did it that way.