add hashing to 'doCache' and byte shedding