Improve perf of Model.get and Model.set