An efficient code compression technique using application-aware bitmask and dictionary selection methods