optimize repo getter