Improve the encode workflow on a emulator.