One side effect in my 'storebox' package is that if I use \immediate
there, any \storebox content is always written to the PDF, even if it is
never actual used. However, this should be the minority of cases, but
was a nice little extra feature.
I think I make this optional for the \pdfxform used by \storebox.
For the \pdfxform's used in the PGF driver I don't think there will be
side effects caused by always added \immediate, but I can't be 100% sure.
I uploaded a new version of 'storebox' already which patches the PGF
driver code. I also had the idea to redefine \pdfxform, but I normally
try to avoid such things. You never know which other packages you affect
with it.
Thanks a lot for you help. I hope the PGF drivers are updated with this.
Best Regards,
Martin Scharrer