Imagine that I'll have thousands of these transactions, this would be bloating the blockchain, probably decreasing the processing capabilities of the network.
I was wondering: is there any way of mantaining these scripts as "accounts" in "script wallets" and not storing it inside the blockchain?
When there is need for validation, I could simply retrieve this script form the "wallet" and check the transaction.
How would it be possible?
You could receive the incoming payments as ordinary p2pkh transactions
to an address that automatically collects the inputs into larger sums and forwards them as
multisig transactions.