Lots of cleanups of Memory::BLOB code and add improved performance regtests