Update: No leak except from boost. Now need to improve speed