Replace array_shift with no_reindex_array_shift for performance increase on large datasets