I think it would be much easier to comment  if you had an example. One would expect forward outputs up to the lengths to be the same.
That said, packing and unpacking to the original order can be a good option, too.
Best regards
Thomas