Melt the butter in a medium-sized pan over medium heat. Add the flour and mix until combined; cook for 1-2 minutes. Add milk and constantly mix to avoid forming lumps. Continue cooking until the mixture thickens. Season with salt and pepper to taste. Add the corn kernels; mix until they combine. Remove from the heat and add the eggs and cheese; continue mixing for 2 minutes. The residual heat will cook the egg. Let it cool down and then place in the fridge for 1-2 hours until it is completely cold and compact.