Performance improvements for large lists