There is no way you can do it...One of the purposes of a boot loader is to provide security to the phone from preventing you to flash stuff and thus prevent stealing of data...Thus when you unlock your boot loader, data is wiped and there is no way you can prevent it...