How to best manage styles

Hi,
I built a keyboard with 30 keys and each key has its own image, in addition to creating a default style for both the default and the pressed state, I assigned a local style to each key.
Does this generate a larger ram allocation?
Is there a better method in these cases?

for(row = 0; row < MAX_NUM_BUTTON_ROW; row++)
    {
        for(col = 0; col < MAX_NUM_BUTTON_COLUMN; col++)
        {
            button = lv_btn_create(Container);

            lv_obj_add_event_cb(button, buttons_event_handler, LV_EVENT_ALL, NULL);

            obj_style = T_get_style_obj(BUTTON_STYLE);
            lv_obj_add_style(button, obj_style, LV_PART_MAIN);

            obj_style = T_get_style_obj(BUTTON_PRESSED_STYLE);
            lv_obj_add_style(button, obj_style, LV_STATE_PRESSED);

            lv_obj_set_style_bg_color(button, lv_color_hex(keypad_bnt_color[buttonIndex]), LV_PART_MAIN);

           lv_obj_set_grid_cell(button, LV_GRID_ALIGN_STRETCH, col, 1, LV_GRID_ALIGN_STRETCH, row, 1);

            //---------------------------------------------------------------------------------------------
            lv_obj_t *image = lv_img_create(button);
            lv_img_set_src(image, prtButtonsImages[buttonIndex++]);
            lv_obj_center(image);
        }
    }