New optimizations

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