limit the number of generated keys