cache schema sql so that schema() can be called more than once