I've considered this as well. When dealing strictly with a binary being passed back into my flash tool and no immediate access to the actual sgo file to acquire the SA2 snippets I would rely on creating a search pattern to find the stored SA2 bytes in the binary (which I did find to exist exactly as they are written in the sgo on MED17 tp20 at least). It's just a matter of figuring out how this byte array is referenced in disassembly and can likely achieve the same thing you're describing but with a non sgo/odx file.
I appreciate the feedback!
Oh, 100% makes sense, you're way out ahead of the situation then and this is super nice work.
I just hate seeing people here asking for, painstakingly disassembling, or worse, paying! for "seed/key for XYZ VW control unit" when it's all in the flashdaten - which is far from your situation