Add optional cache so inline charts can be filled with cached data inline