Data Swapping as a Decision Problem