performance improvements when dumping instance