iPad performance optimisation, inactivity logic