setId performance improvements

First round of performance improvements, with emphasis on the slowest readers.

Prior to this PR, ```BIOFORMATS-openbytes-performance``` took 1 hour 56 min.  Hopefully that time will be reduced with this PR included.