Change Entity.requires into a map for faster lookups.