I agree with Uwe, the use of the expanding foam could easily distort or even break the bulkhead structure. But getting another step ahead it might be possible to make pre-fabricated blocks from it outside the bulkhead structure and fitting and glueing these in-between the bulkheads afterwards - just an idea.
Janos
Janos