Per-site functions.php

Hello,

Something that would be very interesting to me is to have the ability for the blogs on my multisite to run per-site functions.

Much like the plugins for editing the CSS, I would like user to be able to use their own functions.

Is there something like this? What about security?