Mastering Ethereum Gas Optimization: Best Practices for Smart Contracts