Added a way to reserve thread local memory