Added a clean method for engine(free memory) + method for safe entity fetching