helper function to load data form file only if it has not been loaded before
inline data

if original data is json, include verbatim, otherwise base64 encode