Use lookup tables to further reduce filesize