sax adapter optimization