Revert "added lru cache to gallery server"

This reverts commit e0db9d1fc52f8968794e7e5781aba6b633047cf5.