Code optimization sligth performance gain