optimization for non interpolating encoders