Potential thread-safety fix for Memento from Luda.