Remove dex and move all memory to the build