building some transaction with large script like below cause a huge memory usage : https://classic-test.whatsonchain.com/tx/5c9fc415c7791d528be0cc715ac893786d2f42098fd7f6b3a79906e4d39d000c Can we optimize the code to reduce memory usage <img width="1123" alt="image" src="https://user-images.githubusercontent.com/995909/190684220-1835603d-d7ab-4e6a-b42f-c52f9c583199.png">