A bit late, but I'd definitely consider making your code tables static.
Thank you for replying.
The version on Pastebin is outdated, and severely broken.
It corrupts the file, and its dictionary will grow until it fills up the entire memory.
The new version is not ready yet. Until it is, this thread is officially dead.
(Unofficially, it was stillborn. Sigh.)