Add support to keep apps in memory