make and freeze service_class and parent_class assignments instead of making them at every time each method is called.