can't we store a ref to the version generator instead of looking it up everytime we need to generate a version ?