add option to limit the maximum number of cached signatures
Merge pull request #1641 from mind04/sig-cache

add option to limit the maximum number of cached signatures