Adding a saftey limit for the number of keys allowed to fetch at a time