Adjust how default_afm_enable works.

Previously, it set afm_enable on every startup. Now when afm_enable
is not None, afm_enable is persisted.