(Xronos) Memory issue, misplaced the resourceCache instantiation