Unintrusive, thread-safe memoization for Cocoa / Objective-C.