Minimize use of class variables in ViewKey