slightly more efficient large array handling - avoiding copy