Performance improvement.
Performance improvement: don't parse attribute files twice.
Performance improvement: remove some maps.