Optimized part of the wb_load function