Improve ResultTransformer performance (NH-3382)