Added option to disable object memory pool