Added caching to the slurm status checking