add empty optimisation for cache
add empty optimisation for map