Using tmp dir for serialization data