Simple Memoize wrap for instance creation