add rsa_keygen initializer
add basic DIR support for file caches