make cache serializer inner classes static