fix performance issue with large number of virtualenvs