added buffered (safer) hashing & context managers

overall performance improvements