Make MemBio interface safe