Caching
Fix possible div0 when cache leaves nothing to be processed