Caching on the worker
Adds serialization and deserialization of segments
LRU cache works on worker