There is currently no way to recover the data created in the transformed data block. Because that can involve randomization now, it's not possible to recreate on the outside.
There's an associated issue in the stan-dev/stanc3 repo for making the necessary changes to the generated C++ code:
stan-dev/stanc3#1522