buffer lets you split a list into smaller max-size ones
fix #3759: OOM while loading caches

Caches are now loaded by chunks of 50.