Workaround for a performance issue, regarding flattening of a large amount of smaller models