More optimizations

Signed-off-by: kecinzer <kecinzer@gmail.com>