Better Model loading error handling and implementation of Model Caching