BUG-5280: optimize identifier serialization format