MSSLinux: better use of memoization