Refactoring of scan for stored hidden profiles.