endpoint reads only from cache
moved cache write to jobs.py
code cleanup