We managed to create a solution that covers our requirements without needing complex smart contract functionality, which is prone to more attack vectors.