add option to limit the maximum number of cached signatures