Restrict cache size because records can have a lot of related stuff which would end up in the cache before it is reset.
Respect 'repeat_element_for_multiple_values' setting.

This is very useful for repeating metadata elements but could in theory
be used for related records as well, although a context switch is the
preferred solution for that.