Performance ionic + firebase


I am syncing data with Firebase but i have noticed that it has a lot use of CPU, i think its because of the web sockets and the app even in background uses the web socket to synch.
What can i do to improve the performance of the app?
I have removed the cache of every view, it helped because it stops the usage of the web sockets in every view.