Removed transaction state object and replaced it with ObjectSpace and uuid creation. Created a test for memory bloat.