Don't create a 2mb stack object

Change-Id: I24001deb436b4f5859e8e58400fbff176253514e
Reviewed-on: http://review.couchbase.org/42841
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>
Don't release the item while we're using it

Change-Id: I6ab6c9fee2497d0843af47647f33bcce73111f76
Reviewed-on: http://review.couchbase.org/42842
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>