Added explosion caching for speed improvement. And added a max number of projectiles.