Change the hash function to be limit to 20000 characters, use and internal buffer and remove duplicate closure classes.