Needle 2: the memory budget is written first