Change decoders to a batched API.