I hope you get to it eventually, but if you do, consider 32 bits instead.
Computers are fast, memory is cheap and 16 bits is not that big. My .bash_history is clocking at 55814 now with dedup on.
Granted, it's beeing going for years, but still, no reason to punish yourself.
Why limit yourself to 16bit?