More attempts to optimize decoding.