memoize the repositories

This should make it easier on the user to create them.