Static inlining of some functions