Store exped feature to the layer

Hoped to improve the performance, but it turned out that it does not
change a lot. It is still way too slow.