Security + Performance update

Added memory guard for garbaged objects
Added monomorphic cache