Wow, that seems complicated and unneeded. I honestly think you're trying to "prematurely optimize" your app and making things more complicated that they need to be.
Have you already stress tested the app to see if you really need it? The milliseconds you'll gain with this csrf thing could probably be dwarfed compared with other optimizations you could do like adding Redis (or Memcached if strings are enough) to your stack or upgrading to php7 or migrating your webserver to Nginx for example (in case you're still not using them).
If the issue is with using F3's csrf (that's tied to the session handler, in your case, the database) then you can just not use that crsf method and implement your own. On form display, create random string and store it in apc/memcached/redis. On form submit, compare with stored value. No database reads or writes, no F3 core refactoring and no file/memcache detection thingie needed.
Besides, if you really need top performance, you shouldn't be using the database session handler in the first place imho. Not that the issues you mentioned aren't valid or that performance optimization isn't needed, it just seems to be making you waste valuable time because of some extra db writes/reads that could be completely avoided.