Performance improvement: don't parse attribute files twice.