refactoring
change pointer to worker cache to a reference to it