Allocations are done once and dumped in files for elf. Each elf's workflow would be called by a shell script for optimization