NHibernate gateway deduplication fails on large messages

SQL deduplication fails on messages larger than 8KB with error message
The length of the byte[] value exceeds the length configured in the mapping/parameter.