Made scores and cache keys fixed-width.

Both changes reduce out of line allocations, and the latter reduces the
amount of data stored by the cache. These both contribute to reducing
the program's RAM footprint.