Sprinkled some profiler hooks around.
Save a bit of memory and disk access when loading packfiles.