Allow to cache any objects and arrays, not only strings