disassemble and reassemble

Ok.. Im about to take the AC apart so I can paint the engine bay. Is there any way to store or keep from having to flush the system after all the work is done and its back together??? Any tips would be great, Thanks