My solution is usually to have the delayed function which is submitted to the client load the data from file (h5, which enables lazy loading for example) on demand.