Implement compact literals table optimization