Added some performance on RaspberryPi but always crash with segfault which are not occuring on OSX