Wrap fetching in transaction