NF: add "caching" flag to ``get_data``

Caching flag can take values 'fill' and 'unchanged'.