using iterator in management denorm_flush - memory consuming