Could you feed each successive panel from the preceeding one? That would allow you to drop the wire size for most of the run and each panel wouldn't need it's own main breaker.

When you say the load is 40 amps single phase, do you mean 40 amps per phase?