Added unit caching

Caching can be controlled through mission param for AO enemies and
dynamic enemies seperately.