Deferred insertion of elements into cache. Shared_ptr SEGFAULTS now...