Minor code refactoring for iOS physical memory