Passing arguments from database? Not sure what to call this

Hi everyone. i want to be able to do this:
http://pastie.caboo.se/169554 - pass args into a plugin but these args
are read from the database.

This way, I could have different settings (like the path it was saved)
per attachment, and other very useful things.

Is it possible?

Thanks!