Cache cleanup performed every 5 seconds
Fixed cache implementation.