Draft ERC proposes a Flash Loan Proxy that caches a program and its calldata in transient storage and runs it via DELEGATECALL
The draft standard would let one proxy coordinate a flash loan session by temporarily holding the instructions to run, though the proposal has no replies yet.