This looks a lot like deserializeParameterSet(), no easy way to share/reuse?