small decoding optimization