Tweaking the app code to optimize it