Compile optimizations

Signed-off-by: Rachit Rawat <rachit.rc96@gmail.com>