Make handling of special folder icons more efficient.