Aircraft on board foam spray system
What a shame that nobody can help. The unfortunate facts are that this philosophic project has heaps of obstacles and nobody wants to rain on your parade.
You would need to overcome the way-below-zero temperatures experienced at cruising levels where the foamchem would freeze into a solid block.
Good luck with it.