his second purpose was the simple fact that the district was very close to the royal palace , and as he went from shop to shop he discreetly soaked in the lay of the land , looking for any weaknesses in the security measures of the guardians .