For methods on PasswordHistory, only calculate if necessary

Check settings.FEATURES["ADVANCED_SECURITY"] first