There is some asymmetry in the code i.e. using view bound for converting to byte array vs injection invert for converting back from byte array.

Don't know of any alternative though.