Make cache limits 'hard' rather than 'soft' using trim after add, not before

`make check` in `nip2` master branch runs with no errors, hooray!