Some optimization for my application