move crypto instance to local (not serializable)