Optimize the OperationDecoder and OperationEncoder