Optimize away allocations in FrameDecoder.