doMaintenance: don't trigger signing if bool param is false, as an optimisation.