Make changing panel tab blazing fast (constant time)