Code generation to store key-value data for Android