Only update metadata entries when app resigns active state to fix performance bottlenecks - need to revisit this