asymmetric key encryption is quite cpu intensive comparing to , say AES256. why not use the asymmetric keypair to guard an AES key, and use AES to do the encryption instead, something like what https is doing.
"Every time a new file is being written, owefs_encrypt creates a one-time random key. The random key is encrypted using the public key and is embedded in the new file. The contents of the file are encrypted using such random key."