How to make a usb rubber ducky with sdcard integration?

I saw many tutorials on internet of making usb rubber ducky using attiny85 or arduino micro.Can we modify it such that i will store my payloads on sdcard and it will execute them from it.