Optimality of irreversible pollution accumulation