ARRAY-2604: performance improvements. removed system.gc() calls.