Preallocate hash tables of required size