Implement buffered read and resource management