Move /tmp/apd_cache

/tmp/apd_cache is problematic on shared resources like lxplus as only one person can use it. It should use a user-specific directory like $HOME or tempfile.gettempdir() (possibly with a UID suffix).