vc2enc: cache bits per quantizer, calculate wasted bits