ifdef macro for MEMOIZE