removing log traces for memoisation