Always flush plugin state to disk before saving to ensure that the latest
values are present.