Improve load of class in controller