Preserve keys when flipping deploy array