Avoid db hit if there are no idle apps