optimized inverse quantization