cas: use subdirectory for tmp files