Also the "open air prison" effect was a result of trying to reduce attacks from Gaza. For example before the 2008 war there were more than 2000 rockets launched from Gaza into Israel.