Legacy key implementation for User model.