1. Optimize getUser() so that it won't need isLocked() beforehand.