Generation of Optimized Solidity Code for Machine Learning Models using LLMs