All of this gets changed with the DUPSORT version so I'm fine to just leave it simple and not try to optimize it.