[JENKINS-23447] only mask sensible data when displayed on UI or persisted on disk