/dev/shm/tmp isn't a real directory as such. It's actually in RAM and should be limited to something like 1MB.
You don't want to put any temp directory on flash memory as it will wear it out a lot quicker than normal, like putting a swap file on it.
Sharp implemented the tmp directory like this so it doesn't wear out the internal storage.