Reverting #3972 and implementing clearAccessRíghts

PR #3972 implements access cache clearing in a very BAD way. This reverts that and implements a new method named clearAccessRights() to achieve a similar effect.