Remove unused variable
Remove shared_ptrs from load