Hey
Could you explain please, how do you perform permission check?
Are you making some non trivial database query which traverse whole graph of relations, objects and subjects?
Or you just load everything in memory on startup and work with it in memory graph?