Improve call speed to functions using the function wrapper

closes #11