Attempted fix for memory overuse during lazy_loading.