Avoid mkdir and allocs if disabled