Speeding up subscribing, unsubscribing, access checking and bug fix