#228 Configurable max size for duplicate check