Decrease max prefix/suffix key length in order to decrease space usage