memory optimization during DAO flush