Cache the generated model schema lookup

closes #78