optimize() is a long lasting operation, which should not be called in any manager automatically