Persisting constants only if flag is set.