LPS-32364 - Document Library low performance on view document detail

 It completely eliminates the multiply call of asXML(). This improves the performance a lot.
I make my new methods private, but most of them could be protected or public.