Created a local variable that stashs the key entries and waits until there are over 1000 entries until it issues a zadd.