GRADLE-2642 - Changed InMemoryIndexedCache to use the provided serializer.