Improved mechanisim for preventing parseTypes and parseInner multiple calls