Initializing a struct can be tedious when not able to do it in one line. It's also unnecessary JNI cost.