I wonder if we would even want to live in heaven for eternity. In infinite time, we can also do things that give us pleasure potentially infinite times. Would that become boring after we have done it so many times? If yes, then it appears we may get infinitely bored, a situation which is immensely painful. Death in that scenario is a chance to get out of that misery. There is another alternative however. If we also have ability to wipe out our memories in heaven then we can just keep doing whatever gives us pleasure over and over again and just wipe out memories and start over once we get bored.