This has been causing a huge memory leak, wrapping the call in this context manager properly cleans up the 'records' entries. EDUCATOR-274