@Sunnie If you used the Chronicle version 2 (02000000) for the transaction version byte this script could be optimized for size. The script no longer has to leave the stack clean so you can get rid of all the cleanup code (the Op Nips!). I don't think the bytes saved are that significant when looking at the whole script size though tbh.