Let try to cache file handles and actually use the buffer in TextIOWrapper