Preloading caching

Anton, please review the code