Optimize internal functions call