Performance optimization, create map of delta in the beginning
Performance optimizations