Cache the number of niobuffers