added todo for numCache in NextFreeDocService