Only set Buffer capacity and metatable if allocation suceeds