permission optimize