Improved memory management in usingRepository:
Attempt at avoiding ridiculous 'could not fulfil fault' exception