Sleep when no more unmodified items
Update JsonCache behaviour now that we pre-populate the cache