Refine recoding for speed.